from decimal import Decimal

var = 3
count = 1
count = Decimal(count)

for i in range(1,5000000):
    if i%2 != 0:
        count-=Decimal(1/var)
    else:
        count += Decimal(1/var)
    var+=2
    
print (4*count)